/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.server.modules.sys.entity.juhe.usedcar;

import org.hibernate.validator.constraints.Length;

import com.server.common.persistence.DataEntity;

/**
 * 聚合二手车接口车辆品牌数据Entity
 * @author 丁光彪
 * @version 2017-01-06
 */
public class JuheUsedcarBrand extends DataEntity<JuheUsedcarBrand> {
	
	private static final long serialVersionUID = 1L;
	protected String name;		// 名称
	protected String pin;		// 品牌拼音
	protected String vehicle;		//车辆类型：passenger(乘用车)/commercial(商用车)

	public String getVehicle() {
		return vehicle;
	}

	public void setVehicle(String vehicle) {
		this.vehicle = vehicle;
	}

	public JuheUsedcarBrand() {
		super();
	}

	public JuheUsedcarBrand(String id){
		super(id);
	}

	@Length(min=1, max=100, message="名称长度必须介于 1 和 100 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=1, max=2, message="品牌拼音长度必须介于 1 和 2 之间")
	public String getPin() {
		return pin;
	}

	public void setPin(String pin) {
		this.pin = pin;
	}
	
}